Airflow control systems and methods using model predictive control

ABSTRACT

A torque requesting module generates a first torque request for a spark ignition engine based on driver input. A torque conversion module converts the first torque request into a second torque request. A setpoint control module generates air and exhaust setpoints for the spark ignition engine based on the second torque request. A model predictive control (MPC) module identifies sets of possible target values based on the air and exhaust setpoints, generates predicted parameters based on a model of the spark ignition engine and the sets of possible target values, respectively, selects one of the sets of possible target values based on the predicted parameters, and sets target values based on the possible target values of the selected one of the sets. A throttle actuator module controls opening of a throttle valve based on a first one of the target values.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims the benefit of U.S. Provisional Application No. 61/815,068, filed on Apr. 23, 2013. The disclosure of the above application is incorporated herein by reference in its entirety.

This application is related to U.S. patent application Ser. No. ______ (HDP Ref. No. 8540P-001389) filed on [the same day], Ser. No. ______ (HDP Ref. No. 8540P-001390) filed on [the same day], and Ser. No. ______ (HDP Ref. No. 8540P-001391) filed on [the same day]. The entire disclosures of the above applications are incorporated herein by reference.

FIELD

The present disclosure relates to internal combustion engines and more particularly to engine control systems and methods for vehicles.

BACKGROUND

The background description provided here is for the purpose of generally presenting the context of the disclosure. Work of the presently named inventors, to the extent it is described in this background section, as well as aspects of the description that may not otherwise qualify as prior art at the time of filing, are neither expressly nor impliedly admitted as prior art against the present disclosure.

Internal combustion engines combust an air and fuel mixture within cylinders to drive pistons, which produces drive torque. Air flow into the engine is regulated via a throttle. More specifically, the throttle adjusts throttle area, which increases or decreases air flow into the engine. As the throttle area increases, the air flow into the engine increases. A fuel control system adjusts the rate that fuel is injected to provide a desired air/fuel mixture to the cylinders and/or to achieve a desired torque output. Increasing the amount of air and fuel provided to the cylinders increases the torque output of the engine.

In spark-ignition engines, spark initiates combustion of an air/fuel mixture provided to the cylinders. In compression-ignition engines, compression in the cylinders combusts the air/fuel mixture provided to the cylinders. Spark timing and air flow may be the primary mechanisms for adjusting the torque output of spark-ignition engines, while fuel flow may be the primary mechanism for adjusting the torque output of compression-ignition engines.

Engine control systems have been developed to control engine output torque to achieve a desired torque. Traditional engine control systems, however, do not control the engine output torque as accurately as desired. Further, traditional engine control systems do not provide a rapid response to control signals or coordinate engine torque control among various devices that affect the engine output torque.

SUMMARY

In a feature, an engine control system for a vehicle includes: a torque requesting module, a torque conversion module, a setpoint control module, a model predictive control (MPC) module, and a throttle actuator module. The torque requesting module generates a first torque request for a spark ignition engine based on driver input. The torque conversion module converts the first torque request into a second torque request. The setpoint control module generates air and exhaust setpoints for the spark ignition engine based on the second torque request. The MPC module identifies sets of possible target values based on the air and exhaust setpoints, generates predicted parameters based on a model of the spark ignition engine and the sets of possible target values, respectively, selects one of the sets of possible target values based on the predicted parameters, and sets target values based on the possible target values of the selected one of the sets. The throttle actuator module controls opening of a throttle valve based on a first one of the target values.

In further features: a boost actuator module that controls opening of a wastegate based on a second one of the target values; an exhaust gas recirculation (EGR) actuator module that controls opening of an EGR valve based on a third one of the target values; and a phaser actuator module that controls intake and exhaust valve phasing based on fourth and fifth ones of the target values.

In still further features, the MPC module selects the one of the sets of possible target values further based on the air and exhaust setpoints.

In yet further features, the MPC module selects the one of the sets of possible target values based on comparisons of the air and exhaust setpoints with the predicted parameters, respectively.

In further features, the MPC module determines costs for the sets of possible target values based on the comparisons of the air and exhaust setpoints with the predicted parameters, respectively, and selects the one of the sets of possible target values based on the costs.

In still further features, the MPC module sets the target values to within predetermined ranges for the target values, respectively.

In yet further features, the setpoint module generates the air and exhaust setpoints further based on desired combustion phasing.

In further features, the setpoint module generates the air and exhaust setpoints further based on predetermined ranges for the air and exhaust setpoints, respectively.

In still further features, the setpoint module generates the air and exhaust setpoints further based on a number of deactivated cylinders.

In yet further features, the setpoints include an intake manifold pressure setpoint, a mass of air per cylinder (APC) setpoint, a setpoint for external dilution, a setpoint for residual dilution, and a compression ratio setpoint.

In a feature, an engine control method for a vehicle includes: generating a first torque request for a spark ignition engine based on driver input; converting the first torque request into a second torque request; and generating air and exhaust setpoints for the spark ignition engine based on the second torque request. The method further includes, using a model predictive control (MPC) module: identifying sets of possible target values based on the air and exhaust setpoints; generating predicted parameters based on a model of the spark ignition engine and the sets of possible target values, respectively; selecting one of the sets of possible target values based on the predicted parameters; and setting target values based on the possible target values of the selected one of the sets. The method further includes controlling opening of a throttle valve based on a first one of the target values.

In further features, the method further includes: controlling opening of a wastegate based on a second one of the target values; controlling opening of an exhaust gas recirculation (EGR) valve based on a third one of the target values; and controlling intake and exhaust valve phasing based on fourth and fifth ones of the target values.

In still further features, the method further includes selecting the one of the sets of possible target values further based on the air and exhaust setpoints.

In yet further features, the method further includes selecting the one of the sets of possible target values based on comparisons of the air and exhaust setpoints with the predicted parameters, respectively.

In further features, the method further includes: determining costs for the sets of possible target values based on the comparisons of the air and exhaust setpoints with the predicted parameters, respectively; and selecting the one of the sets of possible target values based on the costs.

In still further features, the method further includes setting the target values to within predetermined ranges for the target values, respectively.

In yet further features, the method further includes generating the air and exhaust setpoints further based on desired combustion phasing.

In further features, the method further includes generating the air and exhaust setpoints further based on predetermined ranges for the air and exhaust setpoints, respectively.

In yet further features, the method further includes generating the air and exhaust setpoints further based on a number of deactivated cylinders.

In still further features, the setpoints include an intake manifold pressure setpoint, a mass of air per cylinder (APC) setpoint, a setpoint for external dilution, a setpoint for residual dilution, and a compression ratio setpoint.

Further areas of applicability of the present disclosure will become apparent from the detailed description, the claims and the drawings. The detailed description and specific examples are intended for purposes of illustration only and are not intended to limit the scope of the disclosure.

BRIEF DESCRIPTION OF THE DRAWINGS

The present disclosure will become more fully understood from the detailed description and the accompanying drawings, wherein:

FIG. 1 is a functional block diagram of an example engine system according to the present disclosure;

FIG. 2 is a functional block diagram of an example engine control system according to the present disclosure;

FIG. 3 is a functional block diagram of an example air control module according to the present disclosure; and

FIG. 4 includes a flowchart depicting an example method of controlling a throttle valve, intake and exhaust valve phasing, a wastegate, and an exhaust gas recirculation (EGR) valve using model predictive control according to the present disclosure.

In the drawings, reference numbers may be reused to identify similar and/or identical elements.

DETAILED DESCRIPTION

An engine control module (ECM) controls torque output of an engine. More specifically, the ECM controls actuators of the engine based on target values, respectively, to produce a requested amount of torque. For example, the ECM controls intake and exhaust camshaft phasing based on target intake and exhaust phaser angles, a throttle valve based on a target throttle opening, an exhaust gas recirculation (EGR) valve based on a target EGR opening, and a wastegate of a turbocharger based on a target wastegate duty cycle.

The ECM could determine the target values individually using multiple single input single output (SISO) controllers, such as proportional integral derivative (PID) controllers. However, when multiple SISO controllers are used, the target values may be set to maintain system stability at the expense of possible fuel consumption decreases. Additionally, calibration and design of the individual SISO controllers may be costly and time consuming.

The ECM of the present disclosure generates the target values using model predictive control (MPC). More specifically, the ECM generates various engine air and exhaust setpoints, such as an intake manifold pressure setpoint, an air per cylinder (APC) setpoint, external and residual dilution setpoints, and a compression ratio setpoint.

The ECM identifies possible sets of target values for achieving the setpoints. The ECM determines predicted parameters (responses) for each of the possible sets based on the possible sets' target values and a model of the engine. Constraints are also accounted for. The ECM determines a cost associated with use of each of the possible sets based on comparisons of the predicted parameters with the setpoints, respectively. For example, the ECM may determine the cost associated with a possible set based on how quickly the predicted parameters reach the setpoints and/or how far the predicted parameters overshoot the setpoints, respectively. The ECM may select the one of the possible sets having the lowest cost, and set the target values using the target values of the selected possible set.

Referring now to FIG. 1, a functional block diagram of an example engine system 100 is presented. The engine system 100 includes an engine 102 that combusts an air/fuel mixture to produce drive torque for a vehicle based on driver input from a driver input module 104. The engine 102 may be a gasoline spark ignition internal combustion engine.

Air is drawn into an intake manifold 110 through a throttle valve 112. For example only, the throttle valve 112 may include a butterfly valve having a rotatable blade. An engine control module (ECM) 114 controls a throttle actuator module 116, which regulates opening of the throttle valve 112 to control the amount of air drawn into the intake manifold 110.

Air from the intake manifold 110 is drawn into cylinders of the engine 102. While the engine 102 may include multiple cylinders, for illustration purposes a single representative cylinder 118 is shown. For example only, the engine 102 may include 2, 3, 4, 5, 6, 8, 10, and/or 12 cylinders. The ECM 114 may instruct a cylinder actuator module 120 to selectively deactivate some of the cylinders, which may improve fuel economy under certain engine operating conditions.

The engine 102 may operate using a four-stroke cycle. The four strokes, described below, may be referred to as the intake stroke, the compression stroke, the combustion stroke, and the exhaust stroke. During each revolution of a crankshaft (not shown), two of the four strokes occur within the cylinder 118. Therefore, two crankshaft revolutions are necessary for the cylinder 118 to experience all four of the strokes.

During the intake stroke, air from the intake manifold 110 is drawn into the cylinder 118 through an intake valve 122. The ECM 114 controls a fuel actuator module 124, which regulates fuel injection to achieve a target air/fuel ratio. Fuel may be injected into the intake manifold 110 at a central location or at multiple locations, such as near the intake valve 122 of each of the cylinders. In various implementations (not shown), fuel may be injected directly into the cylinders or into mixing chambers associated with the cylinders. The fuel actuator module 124 may halt injection of fuel to cylinders that are deactivated.

The injected fuel mixes with air and creates an air/fuel mixture in the cylinder 118. During the compression stroke, a piston (not shown) within the cylinder 118 compresses the air/fuel mixture. A spark actuator module 126 energizes a spark plug 128 in the cylinder 118 based on a signal from the ECM 114, which ignites the air/fuel mixture. The timing of the spark may be specified relative to the time when the piston is at its topmost position, referred to as top dead center (TDC).

The spark actuator module 126 may be controlled by a timing signal specifying how far before or after TDC to generate the spark. Because piston position is directly related to crankshaft rotation, operation of the spark actuator module 126 may be synchronized with crankshaft angle. Generating spark may be referred to as a firing event. The spark actuator module 126 may have the ability to vary the timing of the spark for each firing event. The spark actuator module 126 may vary the spark timing for a next firing event when the spark timing is changed between a last firing event and the next firing event. The spark actuator module 126 may halt provision of spark to deactivated cylinders.

During the combustion stroke, the combustion of the air/fuel mixture drives the piston away from TDC, thereby driving the crankshaft. The combustion stroke may be defined as the time between the piston reaching TDC and the time at which the piston reaches bottom dead center (BDC). During the exhaust stroke, the piston begins moving away from BDC and expels the byproducts of combustion through an exhaust valve 130. The byproducts of combustion are exhausted from the vehicle via an exhaust system 134.

The intake valve 122 may be controlled by an intake camshaft 140, while the exhaust valve 130 may be controlled by an exhaust camshaft 142. In various implementations, multiple intake camshafts (including the intake camshaft 140) may control multiple intake valves (including the intake valve 122) for the cylinder 118 and/or may control the intake valves (including the intake valve 122) of multiple banks of cylinders (including the cylinder 118). Similarly, multiple exhaust camshafts (including the exhaust camshaft 142) may control multiple exhaust valves for the cylinder 118 and/or may control exhaust valves (including the exhaust valve 130) for multiple banks of cylinders (including the cylinder 118). In various other implementations, the intake valve 122 and/or the exhaust valve 130 may be controlled by devices other than camshafts, such as camless valve actuators. The cylinder actuator module 120 may deactivate the cylinder 118 by disabling opening of the intake valve 122 and/or the exhaust valve 130.

The time when the intake valve 122 is opened may be varied with respect to piston TDC by an intake cam phaser 148. The time when the exhaust valve 130 is opened may be varied with respect to piston TDC by an exhaust cam phaser 150. A phaser actuator module 158 may control the intake cam phaser 148 and the exhaust cam phaser 150 based on signals from the ECM 114. When implemented, variable valve lift (not shown) may also be controlled by the phaser actuator module 158.

The engine system 100 may include a turbocharger that includes a hot turbine 160-1 that is powered by hot exhaust gases flowing through the exhaust system 134. The turbocharger also includes a cold air compressor 160-2 that is driven by the turbine 160-1. The compressor 160-2 compresses air leading into the throttle valve 112. In various implementations, a supercharger (not shown), driven by the crankshaft, may compress air from the throttle valve 112 and deliver the compressed air to the intake manifold 110.

A wastegate 162 may allow exhaust to bypass the turbine 160-1, thereby reducing the boost (the amount of intake air compression) provided by the turbocharger. A boost actuator module 164 may control the boost of the turbocharger by controlling opening of the wastegate 162. In various implementations, two or more turbochargers may be implemented and may be controlled by the boost actuator module 164.

An air cooler (not shown) may transfer heat from the compressed air charge to a cooling medium, such as engine coolant or air. An air cooler that cools the compressed air charge using engine coolant may be referred to as an intercooler. An air cooler that cools the compressed air charge using air may be referred to as a charge air cooler. The compressed air charge may receive heat, for example, via compression and/or from components of the exhaust system 134. Although shown separated for purposes of illustration, the turbine 160-1 and the compressor 160-2 may be attached to each other, placing intake air in close proximity to hot exhaust.

The engine system 100 may include an exhaust gas recirculation (EGR) valve 170, which selectively redirects exhaust gas back to the intake manifold 110. The EGR valve 170 may be located upstream of the turbocharger's turbine 160-1. The EGR valve 170 may be controlled by an EGR actuator module 172 based on signals from the ECM 114.

A position of the crankshaft may be measured using a crankshaft position sensor 180. A rotational speed of the crankshaft (an engine speed) may be determined based on the crankshaft position. A temperature of the engine coolant may be measured using an engine coolant temperature (ECT) sensor 182. The ECT sensor 182 may be located within the engine 102 or at other locations where the coolant is circulated, such as a radiator (not shown).

A pressure within the intake manifold 110 may be measured using a manifold absolute pressure (MAP) sensor 184. In various implementations, engine vacuum, which is the difference between ambient air pressure and the pressure within the intake manifold 110, may be measured. A mass flow rate of air flowing into the intake manifold 110 may be measured using a mass air flow (MAF) sensor 186. In various implementations, the MAF sensor 186 may be located in a housing that also includes the throttle valve 112.

The throttle actuator module 116 may monitor the position of the throttle valve 112 using one or more throttle position sensors (TPS) 190. An ambient temperature of air being drawn into the engine 102 may be measured using an intake air temperature (IAT) sensor 192. The engine system 100 may also include one or more other sensors 193, such as an ambient humidity sensor, one or more knock sensors, a compressor outlet pressure sensor and/or a throttle inlet pressure sensor, a wastegate position sensor, an EGR position sensor, and/or one or more other suitable sensors. The ECM 114 may use signals from the sensors to make control decisions for the engine system 100.

The ECM 114 may communicate with a transmission control module 194 to coordinate shifting gears in a transmission (not shown). For example, the ECM 114 may reduce engine torque during a gear shift. The ECM 114 may communicate with a hybrid control module 196 to coordinate operation of the engine 102 and an electric motor 198.

The electric motor 198 may also function as a generator, and may be used to produce electrical energy for use by vehicle electrical systems and/or for storage in a battery. In various implementations, various functions of the ECM 114, the transmission control module 194, and the hybrid control module 196 may be integrated into one or more modules.

Each system that varies an engine parameter may be referred to as an engine actuator. For example, the throttle actuator module 116 may adjust opening of the throttle valve 112 to achieve a target throttle opening area. The spark actuator module 126 controls the spark plugs to achieve a target spark timing relative to piston TDC. The fuel actuator module 124 controls the fuel injectors to achieve target fueling parameters. The phaser actuator module 158 may control the intake and exhaust cam phasers 148 and 150 to achieve target intake and exhaust cam phaser angles, respectively. The EGR actuator module 172 may control the EGR valve 170 to achieve a target EGR opening area. The boost actuator module 164 controls the wastegate 162 to achieve a target wastegate opening area. The cylinder actuator module 120 controls cylinder deactivation to achieve a target number of activated or deactivated cylinders.

The ECM 114 generates the target values for the engine actuators to cause the engine 102 to generate a target engine output torque. The ECM 114 generates the target values for the engine actuators using model predictive control, as discussed further below.

Referring now to FIG. 2, a functional block diagram of an example engine control system is presented. An example implementation of the ECM 114 includes a driver torque module 202, an axle torque arbitration module 204, and a propulsion torque arbitration module 206. The ECM 114 may include a hybrid optimization module 208. The ECM 114 also includes a reserves/loads module 220, a torque requesting module 224, an air control module 228, a spark control module 232, a cylinder control module 236, and a fuel control module 240.

The driver torque module 202 may determine a driver torque request 254 based on a driver input 255 from the driver input module 104. The driver input 255 may be based on, for example, a position of an accelerator pedal and a position of a brake pedal. The driver input 255 may also be based on cruise control, which may be an adaptive cruise control system that varies vehicle speed to maintain a predetermined following distance. The driver torque module 202 may store one or more mappings of accelerator pedal position to target torque and may determine the driver torque request 254 based on a selected one of the mappings.

An axle torque arbitration module 204 arbitrates between the driver torque request 254 and other axle torque requests 256. Axle torque (torque at the wheels) may be produced by various sources including an engine and/or an electric motor. For example, the axle torque requests 256 may include a torque reduction requested by a traction control system when positive wheel slip is detected. Positive wheel slip occurs when axle torque overcomes friction between the wheels and the road surface, and the wheels begin to slip against the road surface. The axle torque requests 256 may also include a torque increase request to counteract negative wheel slip, where a tire of the vehicle slips in the other direction with respect to the road surface because the axle torque is negative.

The axle torque requests 256 may also include brake management requests and vehicle over-speed torque requests. Brake management requests may reduce axle torque to ensure that the axle torque does not exceed the ability of the brakes to hold the vehicle when the vehicle is stopped. Vehicle over-speed torque requests may reduce the axle torque to prevent the vehicle from exceeding a predetermined speed. The axle torque requests 256 may also be generated by vehicle stability control systems.

The axle torque arbitration module 204 outputs a predicted torque request 257 and an immediate torque request 258 based on the results of arbitrating between the received torque requests 254 and 256. As described below, the predicted and immediate torque requests 257 and 258 from the axle torque arbitration module 204 may selectively be adjusted by other modules of the ECM 114 before being used to control the engine actuators.

In general terms, the immediate torque request 258 may be an amount of currently desired axle torque, while the predicted torque request 257 may be an amount of axle torque that may be needed on short notice. The ECM 114 controls the engine system 100 to produce an axle torque equal to the immediate torque request 258. However, different combinations of target values may result in the same axle torque. The ECM 114 may therefore adjust the target values to enable a faster transition to the predicted torque request 257, while still maintaining the axle torque at the immediate torque request 258.

In various implementations, the predicted torque request 257 may be set based on the driver torque request 254. The immediate torque request 258 may be set to less than the predicted torque request 257 under some circumstances, such as when the driver torque request 254 is causing wheel slip on an icy surface. In such a case, a traction control system (not shown) may request a reduction via the immediate torque request 258, and the ECM 114 reduces the engine torque output to the immediate torque request 258. However, the ECM 114 performs the reduction so the engine system 100 can quickly resume producing the predicted torque request 257 once the wheel slip stops.

In general terms, the difference between the immediate torque request 258 and the (generally higher) predicted torque request 257 can be referred to as a torque reserve. The torque reserve may represent the amount of additional torque (above the immediate torque request 258) that the engine system 100 can begin to produce with minimal delay. Fast engine actuators are used to increase or decrease current axle torque with minimal delay. Fast engine actuators are defined in contrast with slow engine actuators.

In general terms, fast engine actuators can change the axle torque more quickly than slow engine actuators. Slow actuators may respond more slowly to changes in their respective target values than fast actuators do. For example, a slow actuator may include mechanical components that require time to move from one position to another in response to a change in target value. A slow actuator may also be characterized by the amount of time it takes for the axle torque to begin to change once the slow actuator begins to implement the changed target value. Generally, this amount of time will be longer for slow actuators than for fast actuators. In addition, even after beginning to change, the axle torque may take longer to fully respond to a change in a slow actuator.

For example only, the spark actuator module 126 may be a fast actuator. Spark-ignition engines may combust fuels including, for example, gasoline and ethanol, by applying a spark. By way of contrast, the throttle actuator module 116 may be a slow actuator.

For example, as described above, the spark actuator module 126 can vary the spark timing for a next firing event when the spark timing is changed between a last firing event and the next firing event. By way of contrast, changes in throttle opening take longer to affect engine output torque. The throttle actuator module 116 changes the throttle opening by adjusting the angle of the blade of the throttle valve 112. Therefore, when the target value for opening of the throttle valve 112 is changed, there is a mechanical delay as the throttle valve 112 moves from its previous position to a new position in response to the change. In addition, air flow changes based on the throttle opening are subject to air transport delays in the intake manifold 110. Further, increased air flow in the intake manifold 110 is not realized as an increase in engine output torque until the cylinder 118 receives additional air in the next intake stroke, compresses the additional air, and commences the combustion stroke.

Using these actuators as an example, a torque reserve can be created by setting the throttle opening to a value that would allow the engine 102 to produce the predicted torque request 257. Meanwhile, the spark timing can be set based on the immediate torque request 258, which is less than the predicted torque request 257. Although the throttle opening generates enough air flow for the engine 102 to produce the predicted torque request 257, the spark timing is retarded (which reduces torque) based on the immediate torque request 258. The engine output torque will therefore be equal to the immediate torque request 258.

When additional torque is needed, the spark timing can be set based on the predicted torque request 257 or a torque between the predicted and immediate torque requests 257 and 258. By the following firing event, the spark actuator module 126 may return the spark timing to an optimum value, which allows the engine 102 to produce the full engine output torque achievable with the air flow already present. The engine output torque may therefore be quickly increased to the predicted torque request 257 without experiencing delays from changing the throttle opening.

The axle torque arbitration module 204 may output the predicted torque request 257 and the immediate torque request 258 to a propulsion torque arbitration module 206. In various implementations, the axle torque arbitration module 204 may output the predicted and immediate torque requests 257 and 258 to the hybrid optimization module 208.

The hybrid optimization module 208 may determine how much torque should be produced by the engine 102 and how much torque should be produced by the electric motor 198. The hybrid optimization module 208 then outputs modified predicted and immediate torque requests 259 and 260, respectively, to the propulsion torque arbitration module 206. In various implementations, the hybrid optimization module 208 may be implemented in the hybrid control module 196.

The predicted and immediate torque requests received by the propulsion torque arbitration module 206 are converted from an axle torque domain (torque at the wheels) into a propulsion torque domain (torque at the crankshaft). This conversion may occur before, after, as part of, or in place of the hybrid optimization module 208.

The propulsion torque arbitration module 206 arbitrates between propulsion torque requests 290, including the converted predicted and immediate torque requests. The propulsion torque arbitration module 206 generates an arbitrated predicted torque request 261 and an arbitrated immediate torque request 262. The arbitrated torque requests 261 and 262 may be generated by selecting a winning request from among received torque requests. Alternatively or additionally, the arbitrated torque requests may be generated by modifying one of the received requests based on another one or more of the received torque requests.

For example, the propulsion torque requests 290 may include torque reductions for engine over-speed protection, torque increases for stall prevention, and torque reductions requested by the transmission control module 194 to accommodate gear shifts. The propulsion torque requests 290 may also result from clutch fuel cutoff, which reduces the engine output torque when the driver depresses the clutch pedal in a manual transmission vehicle to prevent a flare (rapid rise) in engine speed.

The propulsion torque requests 290 may also include an engine shutoff request, which may be initiated when a critical fault is detected. For example only, critical faults may include detection of vehicle theft, a stuck starter motor, electronic throttle control problems, and unexpected torque increases. In various implementations, when an engine shutoff request is present, arbitration selects the engine shutoff request as the winning request. When the engine shutoff request is present, the propulsion torque arbitration module 206 may output zero as the arbitrated predicted and immediate torque requests 261 and 262.

In various implementations, an engine shutoff request may simply shut down the engine 102 separately from the arbitration process. The propulsion torque arbitration module 206 may still receive the engine shutoff request so that, for example, appropriate data can be fed back to other torque requestors. For example, all other torque requestors may be informed that they have lost arbitration.

The reserves/loads module 220 receives the arbitrated predicted and immediate torque requests 261 and 262. The reserves/loads module 220 may adjust the arbitrated predicted and immediate torque requests 261 and 262 to create a torque reserve and/or to compensate for one or more loads. The reserves/loads module 220 then outputs adjusted predicted and immediate torque requests 263 and 264 to the torque requesting module 224.

For example only, a catalyst light-off process or a cold start emissions reduction process may require retarded spark timing. The reserves/loads module 220 may therefore increase the adjusted predicted torque request 263 above the adjusted immediate torque request 264 to create retarded spark for the cold start emissions reduction process. In another example, the air/fuel ratio of the engine and/or the mass air flow may be directly varied, such as by diagnostic intrusive equivalence ratio testing and/or new engine purging. Before beginning these processes, a torque reserve may be created or increased to quickly offset decreases in engine output torque that result from leaning the air/fuel mixture during these processes.

The reserves/loads module 220 may also create or increase a torque reserve in anticipation of a future load, such as power steering pump operation or engagement of an air conditioning (NC) compressor clutch. The reserve for engagement of the NC compressor clutch may be created when the driver first requests air conditioning. The reserves/loads module 220 may increase the adjusted predicted torque request 263 while leaving the adjusted immediate torque request 264 unchanged to produce the torque reserve. Then, when the NC compressor clutch engages, the reserves/loads module 220 may increase the adjusted immediate torque request 264 by the estimated load of the NC compressor clutch.

The torque requesting module 224 receives the adjusted predicted and immediate torque requests 263 and 264. The torque requesting module 224 determines how the adjusted predicted and immediate torque requests 263 and 264 will be achieved. The torque requesting module 224 may be engine type specific. For example, the torque requesting module 224 may be implemented differently or use different control schemes for spark-ignition engines versus compression-ignition engines.

In various implementations, the torque requesting module 224 may define a boundary between modules that are common across all engine types and modules that are engine type specific. For example, engine types may include spark-ignition and compression-ignition. Modules prior to the torque requesting module 224, such as the propulsion torque arbitration module 206, may be common across engine types, while the torque requesting module 224 and subsequent modules may be engine type specific.

The torque requesting module 224 determines an air torque request 265 based on the adjusted predicted and immediate torque requests 263 and 264. The air torque request 265 may be a brake torque. Brake torque may refer to torque at the crankshaft under the current operating conditions.

Target values for airflow controlling engine actuators are determined based on the air torque request 265. More specifically, based on the air torque request 265, the air control module 228 determines a target wastegate opening area 266, a target throttle opening area 267, a target EGR opening area 268, a target intake cam phaser angle 269, and a target exhaust cam phaser angle 270. The air control module 228 determines the target wastegate opening area 266, the target throttle opening area 267, the target EGR opening area 268, the target intake cam phaser angle 269, and the target exhaust cam phaser angle 270 using model predictive control, as discussed further below.

The boost actuator module 164 controls the wastegate 162 to achieve the target wastegate opening area 266. For example, a first conversion module 272 may convert the target wastegate opening area 266 into a target duty cycle 274 to be applied to the wastegate 162, and the boost actuator module 164 may apply a signal to the wastegate 162 based on the target duty cycle 274. In various implementations, the first conversion module 272 may convert the target wastegate opening area 266 into a target wastegate position (not shown), and convert the target wastegate position into the target duty cycle 274.

The throttle actuator module 116 controls the throttle valve 112 to achieve the target throttle opening area 267. For example, a second conversion module 276 may convert the target throttle opening area 267 into a target duty cycle 278 to be applied to the throttle valve 112, and the throttle actuator module 116 may apply a signal to the throttle valve 112 based on the target duty cycle 278. In various implementations, the second conversion module 276 may convert the target throttle opening area 267 into a target throttle position (not shown), and convert the target throttle position into the target duty cycle 278.

The EGR actuator module 172 controls the EGR valve 170 to achieve the target EGR opening area 268. For example, a third conversion module 280 may convert the target EGR opening area 268 into a target duty cycle 282 to be applied to the EGR valve 170, and the EGR actuator module 172 may apply a signal to the EGR valve 170 based on the target duty cycle 282. In various implementations, the third conversion module 280 may convert the target EGR opening area 268 into a target EGR position (not shown), and convert the target EGR position into the target duty cycle 282.

The phaser actuator module 158 controls the intake cam phaser 148 to achieve the target intake cam phaser angle 269. The phaser actuator module 158 also controls the exhaust cam phaser 150 to achieve the target exhaust cam phaser angle 270. In various implementations, a fourth conversion module (not shown) may be included and may convert the target intake and exhaust cam phaser angles into target target intake and exhaust duty cycles, respectively. The phaser actuator module 158 may apply the target intake and exhaust duty cycles to the intake and exhaust cam phasers 148 and 150, respectively.

The torque requesting module 224 may also generate a spark torque request 283, a cylinder shut-off torque request 284, and a fuel torque request 285 based on the predicted and immediate torque requests 263 and 264. The spark control module 232 may determine how much to retard the spark timing (which reduces engine output torque) from an optimum spark timing based on the spark torque request 283. For example only, a torque relationship may be inverted to solve for a target spark timing 286. For a given torque request (T_(Req)), the target spark timing (S_(T)) 286 may be determined based on:

S _(T) =f ⁻¹(T _(Req),APC,I,E,AF,OT,#).  (1)

This relationship may be embodied as an equation and/or as a lookup table. The air/fuel ratio (AF) may be the actual air/fuel ratio, as reported by the fuel control module 240. When the spark timing is set to the optimum spark timing, the resulting torque may be as close to a maximum best torque (MBT) as possible. MBT refers to the maximum engine output torque that is generated for a given air flow as spark timing is advanced, while using fuel having an octane rating greater than a predetermined octane rating and using stoichiometric fueling. The spark timing at which this maximum torque occurs is referred to as an MBT spark timing. The optimum spark timing may differ slightly from MBT spark timing because of, for example, fuel quality (such as when lower octane fuel is used) and environmental factors, such as ambient humidity and temperature. The engine output torque at the optimum spark timing may therefore be less than MBT. For example only, a table of optimum spark timings corresponding to different engine operating conditions may be determined during a calibration phase of vehicle design, and the optimum value is determined from the table based on current engine operating conditions.

The cylinder shut-off torque request 284 may be used by the cylinder control module 236 to determine a target number of cylinders to deactivate 287. In various implementations, a target number of cylinders to activate may be used. The cylinder actuator module 120 selectively activates and deactivates the valves of cylinders based on the target number 287.

The cylinder control module 236 may also instruct the fuel control module 240 to stop providing fuel for deactivated cylinders and may instruct the spark control module 232 to stop providing spark for deactivated cylinders. The spark control module 232 may stop providing spark to a cylinder once an fuel/air mixture that is already present in the cylinder has been combusted.

The fuel control module 240 may vary the amount of fuel provided to each cylinder based on the fuel torque request 285. More specifically, the fuel control module 240 may generate target fueling parameters 288 based on the fuel torque request 285. The target fueling parameters 288 may include, for example, target mass of fuel, target injection starting timing, and target number of fuel injections.

During normal operation, the fuel control module 240 may operate in an air lead mode in which the fuel control module 240 attempts to maintain a stoichiometric air/fuel ratio by controlling fueling based on air flow. For example, the fuel control module 240 may determine a target fuel mass that will yield stoichiometric combustion when combined with a present mass of air per cylinder (APC).

FIG. 3 is a functional block diagram of an example implementation of the air control module 228. Referring now to FIGS. 2 and 3, as discussed above, the air torque request 265 may be a brake torque. A torque conversion module 304 converts the air torque request 265 from brake torque into base torque. The torque request resulting from conversion into base torque will be referred to as a base air torque request 308.

Base torques may refer to torque at the crankshaft made during operation of the engine 102 on a dynamometer while the engine 102 is warm and no torque loads are imposed on the engine 102 by accessories, such as an alternator and the A/C compressor. The torque conversion module 304 may convert the air torque request 265 into the base air torque request 308, for example, using a mapping or a function that relates brake torques to base torques.

In various implementations, the torque conversion module 304 may convert the air torque request 265 into another type of torque that is suitable for use by a setpoint module 312, such as an indicated torque. An indicated torque may refer to a torque at the crankshaft attributable to work produced via combustion within the cylinders.

The setpoint module 312 generates setpoint values for controlling the throttle valve 112, the EGR valve 170, the wastegate 162, the intake cam phaser 148, and the exhaust cam phaser 150 to achieve the base air torque request 308 at a present engine speed 316. The setpoints may be referred to as engine air and exhaust setpoints. The engine speed 316 may be determined, for example, based on a crankshaft position measured using the crankshaft position sensor 180.

For example, the setpoint module 312 may generate a manifold pressure (e.g., a MAP) setpoint 318, a mass of air per cylinder (APC) setpoint 320, an external dilution setpoint 324, a residual dilution setpoint 328, and an effective compression ratio setpoint 332. The setpoint module 312 may generate the manifold pressure setpoint 318, the APC setpoint 320, the external dilution setpoint 324, the residual dilution setpoint 328, and the effective compression ratio setpoint 332 using one or more functions or mappings that relate the base air torque request 308 and the engine speed 316 to the setpoints. The setpoint module 312 may also generate one or more other setpoints based on the base air torque request 308 and the engine speed 316.

The manifold pressure setpoint 318 may refer to a target pressure within the intake manifold 110. The APC setpoint 320 may refer to a target mass of air to be drawn into a cylinder for a combustion event. An effective compression ratio may also be referred to as a dynamic compression ratio.

Dilution may refer to an amount of exhaust from a prior combustion event trapped within a cylinder for a combustion event. External dilution may refer to exhaust provided for a combustion event via the EGR valve 170. Internal dilution may refer to exhaust that remains in a cylinder and/or exhaust that is pushed back into the cylinder following the exhaust stroke of a combustion cycle. The external dilution setpoint 324 may refer to a target amount of external dilution. The internal dilution setpoint 328 may refer to a target amount of internal dilution.

The setpoint module 312 may generate one or more of the setpoints 318-332 further based on desired combustion phasing 336 and a cylinder mode 340. The cylinder mode 340 may refer to, for example, the number of cylinders that are deactivated (or activated) and/or a mode of operation of the engine 102 where one or more cylinders (e.g., half or another fraction) are deactivated.

When one or more cylinders are deactivated, each cylinder that is activated is responsible for producing a greater amount of torque in order to achieve the base air torque request 308. The setpoint module 312 may therefore adjust one or more of the setpoints 318-332 based on the cylinder mode 340. For example, the setpoint module 312 may increase the APC setpoint 320 based on the cylinder mode 340. The setpoint module 312 may additionally or alternatively adjust one or more of the other setpoints 318-332 based on the cylinder mode 340.

Combustion phasing may refer to a crankshaft position where a predetermined amount of injected fuel is combusted within a cylinder relative to a predetermined crankshaft position for combustion of the predetermined amount of injected fuel. For example, combustion phasing may be expressed in terms of CA50 relative to a predetermined CA50. CA50 may refer to a crankshaft position (or angle, hence CA) where 50 percent of a mass of injected fuel has been combusted within a cylinder. The predetermined CA50 may correspond to a CA50 where a maximum amount of work is produced from the fuel injected and may be approximately 8.5-approximately 10 degrees after TDC.

A combustion phasing module 344 (FIG. 2) may generally set the desired combustion phasing 336 such that the CA50 occurs at the predetermined CA50. In other words, the combustion phasing module 344 may generally set the desired combustion phasing 336 such that zero combustion phasing occurs to achieve the maximum work and therefore a maximum fuel efficiency. However, the combustion phasing module 344 may selectively adjust the desired combustion phasing 336 under some circumstances.

For example, the combustion phasing module 344 may set the desired combustion phasing such that the CA50 occurs after the predetermined CA50 when knock is detected. Knock may be detected, for example, using one or more knock sensors. Additionally or alternatively, the combustion phasing module 344 may set the desired combustion phasing such that the CA50 occurs after the predetermined CA50 when one or more conditions are present that may cause knock to occur. For example, knock may occur when a quality of fuel within a fuel tank of the vehicle is less than a predetermined quality and/or the ambient temperature is greater than a predetermined temperature and ambient humidity is less than a predetermined value.

When combustion is retarded such that the CA50 occurs after the predetermined CA50, airflow into the cylinders should be increased to achieve the base air torque request 308. The setpoint module 312 may therefore adjust one or more of the setpoints 318-332 based on the desired combustion phasing 336. For example, the setpoint module 312 may increase the APC setpoint 320 when the desired combustion phasing 336 is retarded to provide a CA50 that is after the predetermined CA50.

The setpoint module 312 also generates the setpoints 318-332 based on one or more setpoint constraints 348. A constraint setting module 352 may set the setpoint constraints 348 for the setpoints 318-332 to predetermined acceptable ranges, respectively. The setpoint module 312 sets the setpoints 318-332 to remain within the setpoint constraints 348, respectively.

However, the constraint setting module 352 may selectively adjust a setpoint constraint under some circumstances. For example only, the constraint setting module 352 may set a setpoint constraint to disable dilution. The setpoint module 312 may limit the external dilution setpoint 324 and the residual dilution setpoint 328 to zero in response the setpoint constraint to disable dilution.

The setpoint module 312 may also adjust one or more of the other setpoints based on the limitation of a setpoint. For example, the setpoint module 312 may increase the APC setpoint 320 in order to achieve the base air torque request 308 when the external and residual dilution setpoints 324 and 328 are limited.

A model predictive control (MPC) module 360 generates the target values 266-270, subject to actuator constraints 364, based on the setpoints 318-332, sensed values 368, actual combustion phasing 372, and a model 376 of the engine 102, using MPC. MPC involves the MPC module 360 identifying possible sequences of the target values 266-270 that could be used together during N future control loops, subject to the actuator constraints 364, and given the sensed values 368 and the actual combustion phasing 372, to achieve the setpoints 318-332.

Each possible sequence includes one sequence of N values for each of the target values 266-270. In other words, each possible sequence includes a sequence of N values for the target wastegate opening area 266, a sequence of N values for the target throttle opening area 267, a sequence of N values for the target EGR opening area 268, a sequence of N values for the target intake cam phaser angle 269, and a sequence of N values for the target exhaust cam phaser angle 270. Each of the N values are for a corresponding one of the N control loops.

The MPC module 360 determines predicted responses of the engine 102 to the identified possible sequences of the target values 266-270, respectively, using the model 376 of the engine 102. The MPC module 360 generates a prediction for parameters corresponding to the setpoints 318-332 based on a given possible sequence of the target values 266-270. More specifically, based on a given possible sequence of the target values 266-270, using the model 376, the MPC module 360 generates a sequence of predicted manifold pressures for the N control loops, a sequence of predicted APCs for the N control loops, a sequence of predicted amounts of external dilution for the N control loops, a sequence of predicted amounts of residual dilution for the N control loops, and a sequence of predicted compression ratios for the N control loops. The model 376 may be, for example, a function or a mapping calibrated based on characteristics of the engine 102.

The MPC module 360 determines a cost (value) for each of the possible sequences of the target values 266-270 based on relationships between the setpoints 318-332 and the predictions, respectively. For example, the MPC module 360 may determine the cost for each of the possible sequences of the target values 266-270 based on the periods for the predicted parameters to reach the setpoints 318-332, respectively, and/or amounts that the predicted parameters overshoot the setpoints 318-332, respectively. For example only, the cost may increase as the period for a predicted parameter to reach a setpoint increases and/or as the amount that the predicted parameter overshoots the setpoint increases.

Each pair of predicted parameters and setpoints may be weighted to affect how much the relationships between the predicted parameters and the setpoints affects the cost. For example, the relationship between the predicted APC and the APC setpoint 320 maybe weighted to affect the cost more than the relationship between another predicted parameter and the corresponding setpoint.

The MPC module 360 selects one of the possible sequences of the target values 266-270 based on the costs of the possible sequences of the target values 266-270. For example, the MPC module 360 may select the one of the possible sequences having the lowest cost.

The MPC module 360 may then set the target values 266-270 to the first ones of the N values of the selected possible sequence, respectively. In other words, the MPC module 360 may set the target wastegate opening area 266 to the first one of the N values in the sequence of N values for the target wastegate opening area 266, set the target throttle opening area 267 to the first one of the N values in the sequence of N values for the target throttle opening area 267, set the target EGR opening area 268 to the first one of the N values in the sequence of N values for the target EGR opening area 268, set the target intake cam phaser angle 269 to the first one of the N values in the sequence of N values for the target intake cam phaser angle 269, and set the target exhaust cam phaser angle 270 to the first one of the N values in the sequence of N values for the target exhaust cam phaser angle 270. During a next control loop, the MPC module 360 identifies possible sequences, generates the predicted responses of the possible sequences, determines the cost of each of the possible sequences, selects of one of the possible sequences, and sets of the target values 266-270 to the first set of the target values 266-270 in the selected possible sequence.

The constraint setting module 352 may set the actuator constraints 364. Generally, the constraint setting module 352 may set the actuator constraints 364 for the throttle valve 112, the EGR valve 170, the wastegate 162, the intake cam phaser 148, and the exhaust cam phaser 150 to predetermined acceptable ranges, respectively. The MPC module 360 identifies the possible sequences such that the target values 266-270 remain within the actuator constraints 364, respectively.

However, the constraint setting module 352 may selectively adjust an actuator constraint under some circumstances. For example, the constraint setting module 352 may adjust the actuator constraint for a given engine actuator to narrow the range of possible targets for that engine actuator when a fault is diagnosed in that engine actuator. For another example only, the constraint setting module 352 may adjust the actuator constraint such that the target value for a given actuator follows a predetermined schedule for a fault diagnostic, such as a cam phaser fault diagnostic or an EGR diagnostic.

The sensed values 368 may be measured using sensors or determined based on one or more values measured using one or more sensors. The actual combustion phasing 372 may be determined, for example, based on the actual CA50 during a previous predetermined period relative to the predetermined CA50. Retardation of the CA50 relative to the predetermined CA50 during the predetermined period may indicate that extra energy has been input to the exhaust system 134. The MPC module 360 may therefore increase the target wastegate opening area 266 to offset the extra energy in the exhaust system 134. Otherwise, the extra energy may cause boost of the turbocharger to increase.

Referring now to FIG. 4, a flowchart depicting an example method of controlling the throttle valve 112, the intake cam phaser 148, the exhaust cam phaser 150, the wastegate 162, and the EGR valve 170 using MPC (model predictive control) is presented. Control may begin with 404 where the torque requesting module 224 determines the air torque request 265 based on the adjusted predicted and immediate torque requests 263 and 264.

At 408, the torque conversion module 304 may convert the air torque request 265 into the base air torque request 308 or into another type of torque suitable for use by the setpoint module 312. At 412, the setpoint module 312 generates the setpoints 318-332 based on the base air torque request 308 and the engine speed 316, subject to the setpoint constraints 348. The setpoint module 312 may generate the setpoints 318-332 further based on the cylinder mode 340 and/or the desired combustion phasing 336.

At 416, the MPC module 360 generates the target values 266-270 based on the setpoints 318-332, subject to the actuator constraints 364, using MPC. More specifically, as described above, the MPC module 360 identifies possible sequences of the target values 266-270 and generates predicted responses using the model 376. The MPC module 360 also determines costs for the possible sequences based on the predicted responses, selects one of the possible sequences based on the costs, and sets the target values 266-270 based on the first ones of the target values in the selected possible sequence, respectively.

At 420, the first conversion module 272 converts the target wastegate opening area 266 into the target duty cycle 274 to be applied to the wastegate 162, the second conversion module 276 converts the target throttle opening area 267 into the target duty cycle 278 to be applied to the throttle valve 112. The third conversion module 280 also converts the target EGR opening area 268 into the target duty cycle 282 to be applied to the EGR valve 170 at 420. The fourth conversion module may also convert the target intake and exhaust cam phaser angles 269 and 270 into the target intake and exhaust duty cycles to be applied to the intake and exhaust cam phasers 148 and 150, respectively.

At 424, the throttle actuator module 116 controls the throttle valve 112 to achieve the target throttle opening area 267, and the phaser actuator module 158 controls the intake and exhaust cam phasers 148 and 150 to achieve the target intake and exhaust cam phaser angles 269 and 270, respectively. For example, the throttle actuator module 116 may apply a signal to the throttle valve 112 at the target duty cycle 278 to achieve the target throttle opening area 267. Also at 424, the EGR actuator module 172 controls the EGR valve 170 to achieve the target EGR opening area 268, and the boost actuator module 164 controls the wastegate 162 to achieve the target wastegate opening area 266. For example, the EGR actuator module 172 may apply a signal to the EGR valve 170 at the target duty cycle 282 to achieve the target EGR opening area 268, and the boost actuator module 164 may apply a signal to the wastegate 162 at the target duty cycle 274 to achieve the target wastegate opening area 266. While FIG. 4 is shown as ending after 424, FIG. 4 may be illustrative of one control loop, and control loops may be executed at a predetermined rate.

The foregoing description is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses. The broad teachings of the disclosure can be implemented in a variety of forms. Therefore, while this disclosure includes particular examples, the true scope of the disclosure should not be so limited since other modifications will become apparent upon a study of the drawings, the specification, and the following claims. As used herein, the phrase at least one of A, B, and C should be construed to mean a logical (A or B or C), using a non-exclusive logical OR. It should be understood that one or more steps within a method may be executed in different order (or concurrently) without altering the principles of the present disclosure.

In this application, including the definitions below, the term module may be replaced with the term circuit. The term module may refer to, be part of, or include an Application Specific Integrated Circuit (ASIC); a digital, analog, or mixed analog/digital discrete circuit; a digital, analog, or mixed analog/digital integrated circuit; a combinational logic circuit; a field programmable gate array (FPGA); a processor (shared, dedicated, or group) that executes code; memory (shared, dedicated, or group) that stores code executed by a processor; other suitable hardware components that provide the described functionality; or a combination of some or all of the above, such as in a system-on-chip.

The term code, as used above, may include software, firmware, and/or microcode, and may refer to programs, routines, functions, classes, and/or objects. The term shared processor encompasses a single processor that executes some or all code from multiple modules. The term group processor encompasses a processor that, in combination with additional processors, executes some or all code from one or more modules. The term shared memory encompasses a single memory that stores some or all code from multiple modules. The term group memory encompasses a memory that, in combination with additional memories, stores some or all code from one or more modules. The term memory may be a subset of the term computer-readable medium. The term computer-readable medium does not encompass transitory electrical and electromagnetic signals propagating through a medium, and may therefore be considered tangible and non-transitory. Non-limiting examples of a non-transitory tangible computer readable medium include nonvolatile memory, volatile memory, magnetic storage, and optical storage.

The apparatuses and methods described in this application may be partially or fully implemented by one or more computer programs executed by one or more processors. The computer programs include processor-executable instructions that are stored on at least one non-transitory tangible computer readable medium. The computer programs may also include and/or rely on stored data. 

What is claimed is:
 1. An engine control system for a vehicle, comprising: a torque requesting module that generates a first torque request for a spark ignition engine based on driver input; a torque conversion module that converts the first torque request into a second torque request; a setpoint control module that generates air and exhaust setpoints for the spark ignition engine based on the second torque request; a model predictive control (MPC) module that identifies sets of possible target values based on the air and exhaust setpoints, that generates predicted parameters based on a model of the spark ignition engine and the sets of possible target values, respectively, that selects one of the sets of possible target values based on the predicted parameters, and that sets target values based on the possible target values of the selected one of the sets; and a throttle actuator module that controls opening of a throttle valve based on a first one of the target values.
 2. The engine control system of claim 1 further comprising: a boost actuator module that controls opening of a wastegate based on a second one of the target values; an exhaust gas recirculation (EGR) actuator module that controls opening of an EGR valve based on a third one of the target values; and a phaser actuator module that controls intake and exhaust valve phasing based on fourth and fifth ones of the target values.
 3. The engine control system of claim 1 wherein the MPC module selects the one of the sets of possible target values further based on the air and exhaust setpoints.
 4. The engine control system of claim 3 wherein the MPC module selects the one of the sets of possible target values based on comparisons of the air and exhaust setpoints with the predicted parameters, respectively.
 5. The engine control system of claim 4 wherein the MPC module determines costs for the sets of possible target values based on the comparisons of the air and exhaust setpoints with the predicted parameters, respectively, and selects the one of the sets of possible target values based on the costs.
 6. The engine control system of claim 1 wherein the MPC module sets the target values to within predetermined ranges for the target values, respectively.
 7. The engine control system of claim 1 wherein the setpoint module generates the air and exhaust setpoints further based on desired combustion phasing.
 8. The engine control system of claim 1 wherein the setpoint module generates the air and exhaust setpoints further based on predetermined ranges for the air and exhaust setpoints, respectively.
 9. The engine control system of claim 1 wherein the setpoint module generates the air and exhaust setpoints further based on a number of deactivated cylinders.
 10. The engine control system of claim 1 wherein the setpoints include an intake manifold pressure setpoint, a mass of air per cylinder (APC) setpoint, a setpoint for external dilution, a setpoint for residual dilution, and a compression ratio setpoint.
 11. An engine control method for a vehicle, comprising: generating a first torque request for a spark ignition engine based on driver input; converting the first torque request into a second torque request; generating air and exhaust setpoints for the spark ignition engine based on the second torque request; using a model predictive control (MPC) module: identifying sets of possible target values based on the air and exhaust setpoints; generating predicted parameters based on a model of the spark ignition engine and the sets of possible target values, respectively; selecting one of the sets of possible target values based on the predicted parameters; and setting target values based on the possible target values of the selected one of the sets; and controlling opening of a throttle valve based on a first one of the target values.
 12. The engine control method of claim 11 further comprising: controlling opening of a wastegate based on a second one of the target values; controlling opening of an exhaust gas recirculation (EGR) valve based on a third one of the target values; and controlling intake and exhaust valve phasing based on fourth and fifth ones of the target values.
 13. The engine control method of claim 11 further comprising selecting the one of the sets of possible target values further based on the air and exhaust setpoints.
 14. The engine control method of claim 13 further comprising selecting the one of the sets of possible target values based on comparisons of the air and exhaust setpoints with the predicted parameters, respectively.
 15. The engine control method of claim 14 further comprising: determining costs for the sets of possible target values based on the comparisons of the air and exhaust setpoints with the predicted parameters, respectively; and selecting the one of the sets of possible target values based on the costs.
 16. The engine control method of claim 11 further comprising setting the target values to within predetermined ranges for the target values, respectively.
 17. The engine control method of claim 11 further comprising generating the air and exhaust setpoints further based on desired combustion phasing.
 18. The engine control method of claim 11 further comprising generating the air and exhaust setpoints further based on predetermined ranges for the air and exhaust setpoints, respectively.
 19. The engine control method of claim 11 further comprising generating the air and exhaust setpoints further based on a number of deactivated cylinders.
 20. The engine control method of claim 11 wherein the setpoints include an intake manifold pressure setpoint, a mass of air per cylinder (APC) setpoint, a setpoint for external dilution, a setpoint for residual dilution, and a compression ratio setpoint. 